package com.haisen.dataobject.mapper.base;

import com.haisen.core.utils.MyMapper;
import com.haisen.dataobject.entity.BussItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface BussItemMapper extends MyMapper<BussItem> {

   @Update("<script>"
           +"update tb_buss_item set verify=#{status} where id in "
           +"<foreach collection='ids' open='(' item='id' separator=',' close=')'>"
           +"#{id}"
           +"</foreach>"
           +"</script>")
    void updateStatus(@Param("status") Integer status, @Param("ids") Long[] ids);
}